package com.lanhai.model;

import java.awt.geom.GeneralPath;
import java.util.List;

/**
 * 交管区
 * @author liangmin
 *
 */
public class ControlArea {
	public int id;//交管区ID
	public int type;//类型，交管区类型：0，独占模式  1：分线路锁管理模式
	public String name;//交管区名称
	public int runAgvId;//当前行驶的AgvId
	public int flag;//是否可通行 1:可通行，2:不可通行,3:同向限行(工位上有车，则相同一侧的入口需要封闭)
	public Double[] mapXArr;//顶点的X座标数组
	public Double[] mapYArr;//顶点的Y座标数组
	public GeneralPath shape;
	public String ipAddress;//机器IP地址
	public int joinCaId;//关联交管区ID
	public Double baseX;//基准点X座标
	public Double baseY;//基准点Y座标
	public List<ControlRunAgv> runAgvList;//交管区运行的车辆
	
	
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getId() {
		return id;
	}
	public List<ControlRunAgv> getRunAgvList() {
		return runAgvList;
	}
	public void setRunAgvList(List<ControlRunAgv> runAgvList) {
		this.runAgvList = runAgvList;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public int getFlag() {
		return flag;
	}
	public void setFlag(int flag) {
		this.flag = flag;
	}
	public int getRunAgvId() {
		return runAgvId;
	}
	public void setRunAgvId(int runAgvId) {
		this.runAgvId = runAgvId;
	}
	public Double[] getMapXArr() {
		return mapXArr;
	}
	public void setMapXArr(Double[] mapXArr) {
		this.mapXArr = mapXArr;
	}
	public Double[] getMapYArr() {
		return mapYArr;
	}
	public void setMapYArr(Double[] mapYArr) {
		this.mapYArr = mapYArr;
	}
	public GeneralPath getShape() {
		return shape;
	}
	public void setShape(GeneralPath shape) {
		this.shape = shape;
	}
	public String getIpAddress() {
		return ipAddress;
	}
	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}
	public int getJoinCaId() {
		return joinCaId;
	}
	public void setJoinCaId(int joinCaId) {
		this.joinCaId = joinCaId;
	}
	public Double getBaseX() {
		return baseX;
	}
	public void setBaseX(Double baseX) {
		this.baseX = baseX;
	}
	public Double getBaseY() {
		return baseY;
	}
	public void setBaseY(Double baseY) {
		this.baseY = baseY;
	}
	
	@Override
	public String toString(){
		return "No:" + id + ",名称:" + name + ",AGV:" + runAgvId;
	}
}
